package answer_01;

public class Teacher extends Person {
      double salary;

      Teacher(){}
      Teacher(String name,int age,String address,int salary){
        super(name,address,age);
        this.salary=salary;
      }
      void teach(){System.out.println("月薪"+salary+"家在"+address+"的"+name+"老师在讲课");}
}
